<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑单页</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
        <input name="id" type="hidden" value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-1"><span class="c-red">*</span>标题：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="请输入" name="title" datatype="*" nullmsg="不能为空" value="{$data.title}">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-1">描述：</label>
            <div class="formControls col-7">
                <textarea name="describe" class="textarea valid" placeholder="输入简介" onkeyup="textarealength(this,100)">{$data.describe}</textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-1"><span class="c-red"></span>排序：</label>
            <div class="formControls col-7">
                <input type="number" class="input-text" placeholder="请输入" name="sort" value="{$data.sort}">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-1"><span class="c-red">*</span>内容：</label>
            <div class="formControls col-10">
                <script id="content" name="content" type="text/plain" style="width:100%;height:400px;">
                    {:htmlspecialchars_decode($data['content'])}
                </script>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <div class="col-7 col-offset-1">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>
<script type="text/javascript">
    $(function () {
        var ue = UE.getEditor('content');
    });
</script>
</body>
</html>